package com.speciality.demo.demos.service;

import com.speciality.demo.demos.entity.WeatherDaily;
import com.speciality.demo.demos.entity.WeatherHourly;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;
@Service
//用于预测的数据整理传输
public interface WeatherDataService {
    /**
     * 获取历史小时数据
     */
    List<WeatherHourly> getHistoricalHourlyData(LocalDate startDate, LocalDate endDate);

    /**
     * 获取未来小时数据
     */
    List<WeatherHourly> getFutureHourlyData(LocalDate startDate, LocalDate endDate);

    /**
     * 获取历史日数据
     */
    List<WeatherDaily> getHistoricalDailyData(LocalDate startDate, LocalDate endDate);

    /**
     * 获取实时天气数据
     */
    List<WeatherHourly> getRealTimeData(String location);

    /**
     * 保存天气数据
     */
    void saveWeatherData(WeatherHourly data);
}
